package net.lab1024.sa.admin.module.business.place.dao;

import java.util.List;

import net.lab1024.sa.admin.module.business.place.domain.entity.PlaceEntity;
import net.lab1024.sa.admin.module.business.place.domain.form.PlaceQueryForm;
import net.lab1024.sa.admin.module.business.place.domain.vo.PlaceVO;
import net.lab1024.sa.admin.module.business.school.domain.form.RSchoolQueryForm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 学校信息 Dao
 *
 * @Author syf
 * @Date 2025-05-14 10:36:40
 * @Copyright 畅想科技
 */

@Mapper
@Component
public interface RSchoolDao extends BaseMapper<PlaceEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<PlaceVO> queryPage(Page page, @Param("queryForm") PlaceQueryForm queryForm);
    List< PlaceEntity> query();
    int updateByPlaceId(@Param("placeEntity") PlaceEntity placeEntity);
    void deleteBatchIds(@Param("idList") List<Long> idList);
    int deleteBySchoolId(@Param("placeEntity") PlaceEntity placeEntity);
    int insertPlace(@Param("placeEntity") PlaceEntity placeEntity);

}
